package com.ruoyi.coupon.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.coupon.api.domain.SkuLadder;
import com.ruoyi.coupon.api.factory.RemoteCouponFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Author：汤小洋
 * Date：2025-11-07 14:14
 * Description：<描述>
 */
@FeignClient(contextId = "remoteCouponService", value = ServiceNameConstants.COUPON_SERVICE, fallbackFactory = RemoteCouponFallbackFactory.class)
public interface RemoteCouponService {

    @PostMapping("/sku/ladder")
    public AjaxResult addSkuLadder(@RequestBody SkuLadder skuLadder);
}
